# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-jsonrpclib-pelix
_pkgname=jsonrpclib-pelix
pkgver=0.4.0
pkgrel=3
pkgdesc='A Python JSON-RPC over HTTP that mirrors xmlrpclib syntax.'
arch=('any')
url='https://pypi.org/project/jsonrpclib-pelix/#files'
license=('Apache')
depends=('python')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a9c1c6149e1be78b30f1817193fefac34d3d7fdab3494a77f035a306724793c7ccf7aa8ebcd34dfa1ec2d725253ce02375ae1b952dbd7d494ef8bcf0cd7115f0')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

